package com.sxt.commons;

public class ConvertBytes {
	/**
	 * byte转int
	 * 
	 * @param bytes
	 * @return 
	 */
	public Integer convertByteToInt(byte[] bytes) {
		
		Integer value = 0;
		for (int i = 0; i < 4; i++) {
			int shift = (3 - i) * 8;
			value += (bytes[i] & 0xFF) << shift;
		}
		return value;
	}
}
